<?php
header('Content-Type: text/html; charset=UTF-8');
require '../crawl.php';
require 'scan.php';
require '../database.php';
$db = new DB();

$web = isset($_GET['w']) ? strval($_GET['w']) : NULL;
$p = isset($_GET['p']) ? intval($_GET['p']) : 0;

switch ($web) {
	case 'twogames':
		echo scan::twogames('http://m.agame.com/', $p);
	break;
	default:
		return true;
	break;
}